package com.jinzhi.jzweb.controller;

import com.jinzhi.common.base.BaseController;
import com.jinzhi.sys.domain.UserDO;
import com.jinzhi.sys.service.UserService;
import io.swagger.annotations.Api;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;
import java.util.Map;

/**
 * 成绩解密页面入口
 */
@Controller
@RequestMapping("/jzweb/GradeDecryption")
@Api(value = "成绩解密页面入口", tags = "成绩解密管理")
public class GradeDecryption extends BaseController {
    @Autowired
    UserService userService;

    //A-制定照护解密
    @GetMapping("/KnowledgeLiteracyAssessment/secondaryInfilling")
    @RequiresPermissions("jzweb:getScoreInfoPage:getScoreInfoPage")
    String secondaryInfilling(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/KnowledgeLiteracyAssessment/a";
    }

    @GetMapping("/KnowledgeLiteracyAssessment/primaryEncryption")
    @RequiresPermissions("jzweb:getAddDecrypt:getAddDecrypt")
    String primaryEncryption(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/KnowledgeLiteracyAssessment/b";
    }


    @GetMapping("/KnowledgeLiteracyAssessment/onceAndTwiceEncryption")
    @RequiresPermissions("jzweb:getDecrypt:getDecrypt")
    String onceAndTwiceEncryption(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/KnowledgeLiteracyAssessment/c";
    }

    @GetMapping("/KnowledgeLiteracyAssessment/playerChoosesEncryptOnce")
    String playerChoosesEncryptOnce(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/KnowledgeLiteracyAssessment/d";
    }

    //A-职业素养测评解密
    @GetMapping("/parentsChildCampaign/primaryEncryption")
    @RequiresPermissions("jzweb:parentsChildCampaign:primaryEncryption")
    String primaryEncryptionPCC(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/parentsChildCampaign/a";
    }

    @GetMapping("/parentsChildCampaign/onceAndTwiceEncryption")
    @RequiresPermissions("jzweb:parentsChildCampaign:onceAndTwiceEncryption")
    String onceAndTwiceEncryptionPCC(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/parentsChildCampaign/b";
    }

    @GetMapping("/parentsChildCampaign/playerChoosesEncryptOnce")
    @RequiresPermissions("jzweb:parentsChildCampaign:playerChoosesEncryptOnce")
    String playerChoosesEncryptOncePCC(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/parentsChildCampaign/c";
    }

    @GetMapping("/parentsChildCampaign/computerTestScore")
    @RequiresPermissions("jzweb:parentsChildCampaign:computerTestScore")
    String computerTestScore(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/parentsChildCampaign/d";
    }


    //B-实操赛场解密
     //居家场景解密
    @GetMapping("/PracticeFieldDecryption/infantLifeCareFirst")
    @RequiresPermissions("jzweb:PracticeFieldDecryption:infantLifeCareFirst")
    String infantLifeCareFirst(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/PracticeFieldDecryption/a";
    }

   
    @GetMapping("/PracticeFieldDecryption/secondaryInfilling")
    @RequiresPermissions("jzweb:PracticeFieldDecryption:secondaryInfilling")
    String secondaryInfillingPFD(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/PracticeFieldDecryption/b";
    }

  
    @GetMapping("/PracticeFieldDecryption/primaryEncryption")
    @RequiresPermissions("jzweb:PracticeFieldDecryption:primaryEncryption")
    String primaryEncryptionPFD(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/PracticeFieldDecryption/c";
    }

    
    @GetMapping("/PracticeFieldDecryption/onceAndTwiceEncryption")
    @RequiresPermissions("jzweb:PracticeFieldDecryption:onceAndTwiceEncryption")
    String onceAndTwiceEncryptionPFD(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/PracticeFieldDecryption/d";
    }

     
    @GetMapping("/PracticeFieldDecryption/playerChoosesEncryptOnce")
    @RequiresPermissions("jzweb:PracticeFieldDecryption:playerChoosesEncryptOnce")
    String playerChoosesEncryptOncePFD(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/PracticeFieldDecryption/e";
    }


    //月子中心场景解密
    @GetMapping("/infantHealthCareOrFirstAidTreatment/infantLifeCareFirst")
    @RequiresPermissions("jzweb:infantHealthCareOrFirstAidTreatment:infantLifeCareFirst")
    String infantLifeCareFirstIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/infantHealthCareOrFirstAidTreatment/a";
    }


    @GetMapping("/infantHealthCareOrFirstAidTreatment/secondaryInfilling")
    @RequiresPermissions("jzweb:infantHealthCareOrFirstAidTreatment:secondaryInfilling")
    String secondaryInfillingIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/infantHealthCareOrFirstAidTreatment/b";
    }


    @GetMapping("/infantHealthCareOrFirstAidTreatment/primaryEncryption")
    @RequiresPermissions("jzweb:infantHealthCareOrFirstAidTreatment:primaryEncryption")
    String primaryEncryptionIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/infantHealthCareOrFirstAidTreatment/c";
    }


    @GetMapping("/infantHealthCareOrFirstAidTreatment/onceAndTwiceEncryption")
    @RequiresPermissions("jzweb:infantHealthCareOrFirstAidTreatment:onceAndTwiceEncryption")
    String onceAndTwiceEncryptionIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/infantHealthCareOrFirstAidTreatment/d";
    }


    @GetMapping("/infantHealthCareOrFirstAidTreatment/playerChoosesEncryptOnce")
    @RequiresPermissions("jzweb:infantHealthCareOrFirstAidTreatment:playerChoosesEncryptOnce")
    String playerChoosesEncryptOnceIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/infantHealthCareOrFirstAidTreatment/e";
    }

    //意外伤害的应急处置解密
    @GetMapping("/emergencyResponseToAccidentalInjurie/emergencyResponseFirst")
    @RequiresPermissions("jzweb:emergencyResponseToAccidentalInjurie:emergencyResponseFirst")
    String emergencyResponseFirstIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/accidentalInjury/a";
    }


    @GetMapping("/emergencyResponseToAccidentalInjurie/secondaryInfilling")
    @RequiresPermissions("jzweb:emergencyResponseToAccidentalInjurie:secondaryInfilling")
    String emergencySecondaryInfillingIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/accidentalInjury/b";
    }


    @GetMapping("/emergencyResponseToAccidentalInjurie/primaryEncryption")
    @RequiresPermissions("jzweb:emergencyResponseToAccidentalInjurie:primaryEncryption")
    String emergencyPrimaryEncryptionIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/accidentalInjury/c";
    }

    @GetMapping("/emergencyResponseToAccidentalInjurie/onceAndTwiceEncryption")
    @RequiresPermissions("jzweb:emergencyResponseToAccidentalInjurie:onceAndTwiceEncryption")
    String emergencyOnceAndTwiceEncryptionIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/accidentalInjury/d";
    }


    @GetMapping("/emergencyResponseToAccidentalInjurie/playerChoosesEncryptOnce")
    @RequiresPermissions("jzweb:emergencyResponseToAccidentalInjurie:playerChoosesEncryptOnce")
    String emergencyPlayerChoosesEncryptOnceIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/accidentalInjury/e";
    }

//------
    //  婴幼儿早期发展解密  EarlyInfantAndToddlerDevelopment
    @GetMapping("/earlyInfantAndToddlerDevelopment/emergencyResponseFirst")
    @RequiresPermissions("jzweb:earlyInfantAndToddlerDevelopment:emergencyResponseFirst")
    String earlyResponseFirstIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/KnowledgeLiteracyAssessment/a";
    }


    @GetMapping("/earlyInfantAndToddlerDevelopment/secondaryInfilling")
    @RequiresPermissions("jzweb:earlyInfantAndToddlerDevelopment:secondaryInfilling")
    String earlySecondaryInfillingIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/KnowledgeLiteracyAssessment/b";
    }


    @GetMapping("/earlyInfantAndToddlerDevelopment/primaryEncryption")
    @RequiresPermissions("jzweb:earlyInfantAndToddlerDevelopment:primaryEncryption")
    String earlyPrimaryEncryptionIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/KnowledgeLiteracyAssessment/c";
    }


    @GetMapping("/earlyInfantAndToddlerDevelopment/onceAndTwiceEncryption")
    @RequiresPermissions("jzweb:earlyInfantAndToddlerDevelopment:onceAndTwiceEncryption")
    String earlyOnceAndTwiceEncryptionIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/KnowledgeLiteracyAssessment/d";
    }


    @GetMapping("/earlyInfantAndToddlerDevelopment/playerChoosesEncryptOnce")
    @RequiresPermissions("jzweb:earlyInfantAndToddlerDevelopment:playerChoosesEncryptOnce")
    String earlyPlayerChoosesEncryptOnceIHCOFAT(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/KnowledgeLiteracyAssessment/e";
    }



    //D-成绩总解密
    @GetMapping("/totalScoreDecryption")
    @RequiresPermissions("jzweb:stuDecryptList:stuDecryptList")
    String totalScoreDecryption(Model model){
        UserDO userDO = userService.selectById(this.getUserId());
        model.addAttribute("name", userDO.getUsername());
        return "infantnurse/totalScoreDecryption/a";
    }
}
